package init

import (
	"fmt"
	"gin-build/config"

	"github.com/spf13/viper"
)

func InitConfig() {
	viper.SetConfigFile("./config.yaml")
	viper.ReadInConfig()
	viper.Unmarshal(&config.AppCfg)
	fmt.Println("配置成功", config.AppCfg)
}
